<?php

class SanPham extends CI_Controller
{
	function danhsachsp($madm)
	{
		$data = array( 
			'dssp'=>$this->msanpham->danhsachsanpham($madm),
			'page'=>'sanpham'
		);
		$this->load->view('templateuser', $data);
	}
	
	function chitietsp($masp, $madm)
	{
		$data = array(
			'ttsp'=>$this->msanpham->thongtinsanpham($masp),
			'spcl'=>$this->msanpham->danhsachsanphamcungloai($madm),
			'page'=>'chitietsp'
		);
		$this->load->view('templateuser', $data);
	}
	
}

?>